package com.service.device;

import com.common.ErrorCodeEnum;
import com.common.emums.DataStatus;
import com.common.exception.BusinessException;
import com.common.utils.StringUtils;
import com.core.springSecurity.common.SecurityUtils;

import com.dao.secondary.device.DeviceObdWorkTimeDayStatisticsInfoMapper;
import com.model.pojo.device.DeviceObdWorkTimeDayStatisticsInfo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.github.pagehelper.PageHelper;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;


/**
 * @Author: zql
 * @Description: OBD 每天工作时长记录服务
 * @Data: 2023-12-13
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class DeviceObdWorkTimeDayStatisticsInfoService {
    private final DeviceObdWorkTimeDayStatisticsInfoMapper deviceObdWorkTimeDayStatisticsInfoMapper;
    public int save(DeviceObdWorkTimeDayStatisticsInfo info){
        info.setCreateTime(new Date());
        return deviceObdWorkTimeDayStatisticsInfoMapper.insertSelective(info);
    }
}
